﻿//////////////////////////////////////////////////////////////////////////////
//
//  Copyright © 1998-2024 Glodon Company Limited.  All rights reserved.
//
//  Use of this software is subject to the terms of the Glodon license
//  agreement provided at the time of installation or download, or which
//  otherwise accompanies this software in either electronic or hard copy form.  
//
//////////////////////////////////////////////////////////////////////////////

#pragma once
#include "GnufTreeNodeData.h"

namespace gnuf
{
    class GNUF_EXTENSION_EXPORT GnufRootNodeData : public GnufTreeNodeData
    {
    public:
        virtual ~GnufRootNodeData();

    public:
        virtual bool isRoot() const override { return true; }
        virtual bool isLeaf() const { return false; }

    private:
        virtual bool setParent(GnufTreeNodeData*) override;

    private:
        explicit GnufRootNodeData(const std::wstring& name, const std::wstring& identity);
        GnufRootNodeData(const GnufRootNodeData&) = delete;
        GnufRootNodeData& operator=(const GnufRootNodeData&) = delete;
        friend class GnufTreeModelData;
    };
}



